<?php 
use yii\helpers\Html;
use services\models\UpFileData;

//热门搜索
if(!empty($words)){
foreach($words as $word):?>
    <a href="<?=$word['url']?>"><?=$word['keyword']?></a>
<?php endforeach;
}
echo '@@';
//LOGO右侧广告
if(!empty($logo_adv[0])){
    if($logo_adv[0]['status'] == 1){?>
    <a target="_blank" href="<?php echo $logo_adv[0]['url']; ?>">
       <?php if($logo_adv[0]['tag_display'] == 1){?>
        <span class="icon icon-hot-bg" id="goodsLogoAdFlash">
            <?php echo $logo_adv[0]['tag']; ?>
        </span>
       <?php } ?>
            <?= Html::img(UpFileData::showImage($logo_adv[0]['pic']),['width'=>'202','height'=>'75']); ?>
    </a>
<?php } 
    }
echo '@@';
//顶部拉幕
$ad_1 = isset($liketry_top_ad[17]) ? $liketry_top_ad[17] : array('isshow'=>0,'arr'=>array());
if($ad_1['isshow'] == 1 && !empty($ad_1['arr'])) {
?>
<div class="goods-ad-top" id="goodsAdTop">
  <div class="goods-ad-top-close"><span class="icon icon-close-bg" id="goodsAdTopClose" onclick="$('#goodsAdTop').hide()">关闭</span></div>
  <a target="_blank" href="<?php echo $ad_1['arr'][0]['url']; ?>" style="background-image:url('<?= Yii::$app->params['goods_image_url'].$ad_1['arr'][0]['image'];?>');"></a> 
</div>
<?php } ?>
